package android.framework.binding;

public class BindableString extends BaseBindable<String>{

	private String text;
	
	public BindableString(String text){
		this.text = text;
	}
	
	public BindableString(){
		this.text = "";
	}
	
	
	public void setText(String text){
		if(!this.text.equals(text)){
			notifyListener(text);
		}
		this.text = text;
	}
	
	public String getText(){
		return this.text;
	}

	public void notifyChanges(String value) {
		this.text = value;	
	}

	@Override
	public String toString(){
		return getText();
	}

	public String getLastValue() {
		return text;
	}
}
